﻿using System;

namespace Flagwind.Expressions.Tokenization
{
	public class SymbolTokenizer : LiteralTokenizerBase
	{
		#region 构造方法

		public SymbolTokenizer(params string[] symbols) : base(symbols)
		{
			if(symbols == null || symbols.Length == 0)
				base.Literals = SymbolToken.Symbols;
		}

		#endregion

		#region 重写方法

		protected override Token CreateToken(string literal)
		{
			return SymbolToken.GetToken(literal);
		}

		#endregion
	}
}